package com.jewelry.web.action;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.jewelry.service.IPackagesService;
import com.jewelry.vo.StatisticsVO;

public class PackagesAction extends HttpAction {

	private static final long serialVersionUID = -788572136462660690L;
	
	private static final Logger logger = LoggerFactory.getLogger(PackagesAction.class);
	
	private List<StatisticsVO> statisticsList;
	
	public List<StatisticsVO> getStatisticsList() {
		return statisticsList;
	}

	public void setStatisticsList(List<StatisticsVO> statisticsList) {
		this.statisticsList = statisticsList;
	}

	private IPackagesService packagesService;
	
	public IPackagesService getPackagesService() {
		return packagesService;
	}

	public void setPackagesService(IPackagesService packagesService) {
		this.packagesService = packagesService;
	}

	//===============================================================
	
	public String packagesAdminMain() {
		statisticsList = packagesService.getGroupByPackageState();
		return SUCCESS;
	}
	
	public String queryPackagesList(){
		if(logger.isDebugEnabled()){
			logger.debug("start queryPackagesList ... ");
		}
		return SUCCESS;
	}

}
